build: Link with -Bsymbolic-functions
authorColin Walters <walters@verbum.org>
Thu, 3 May 2012 17:40:23 +0000 (13:40 -0400)
committerColin Walters <walters@verbum.org>
Thu, 3 May 2012 17:40:23 +0000 (13:40 -0400)
Avoids indirecting through PLT for internal calls, at the cost that we
can't use LD_PRELOAD to override internal functions (but we never
really want that, use a debugger).

Makefile-libostree.am

index 6eb27e08ec9e56e2f353e66947121487136a853e..af5a9af9638c95492a05ef99471d60ad34727479 100644 (file)
@@ -47,7 +47,7 @@ libostree_la_SOURCES += src/libostree/ostree-libarchive-input-stream.h \
 endif
 
 libostree_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree -DLOCALEDIR=\"$(datadir)/locale\" $(OT_DEP_GIO_UNIX_CFLAGS)
-libostree_la_LDFLAGS = -avoid-version
+libostree_la_LDFLAGS = -avoid-version -Bsymbolic-functions
 libostree_la_LIBADD = libotutil.la $(OT_DEP_GIO_UNIX_LIBS)
 
 if USE_LIBARCHIVE